<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>背景颜色</title>
    <style>
        h1{
            width: 100px;
            height: 100px;
            background-color: blue;
        }
    </style>
    <style>
        .content{
            width:100%;
            height: 1000px;
            background-color: gray;
            background-image:url("./0208图片.png");
            background-repeat: no-repeat;
            background-position-x: right;
            background-position-y: bottom;
            background-attachment: fixed;/*照片固定住*/
        }
    </style>
</head>
<body>
    <h1>大门</h1>
    <div class="content">蓝天白云</div>
    <div id="name">小门</div>
</body>
</html>